package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    //发布动态
    String publish(Movement movement);

    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long friendId);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement findById(String movementId);
    //根据用户id和状态分页查询
    PageResult findByUserId(Long uid, Integer state, Integer page, Integer pagesize);

    //更新审核状态
    void update(String movementId, int state);
}
